package cn.ly.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "用户")
public class User implements Serializable {
    @TableId(value = "u_id",type = IdType.AUTO)
    @ApiModelProperty(name = "uId",value = "用户id")
    private Integer uId;

    @ApiModelProperty(name = "uUsername",value = "账号")
    private String uUsername;

    @ApiModelProperty(name = "uPassword",value = "密码")
    private String uPassword;

    @ApiModelProperty(name = "uPhone",value = "电话")
    private String uPhone;

    @ApiModelProperty(name = "uAuthority",value = "关联权限表的id")
    private Integer uAuthority;

    @ApiModelProperty(name = "uAuthorityPath",value = "没用")
    private String uAuthorityPath;


    private Date uCreateTime;

    private Date uUpdateTime;

    private Date uDeleteTime;

    private Integer uStateCode;

    @ApiModelProperty(required = false)
    private Role role;

    private static final long serialVersionUID = 1L;

}